package ModelLayer;

public class Tire extends Product {
	
	private String tireType;
	private String tireSize;
	
	//Constructor which catches the superclass
	public Tire()
	{
		super(0, 0, "", 0, 0, 0, "", "", "", "", 0, 0, 0);
	}

	//Constructor which builds the object
	public Tire(int productNumber, int serialNumber, String productName, double purchasePrice,	double salesPrice, double rentPrice, String countryOfOrigin, String fabricant, String description, String carModel, int modelYear, int minStock, int maxStock, String tireType, String tireSize)
	{
		super(productNumber, serialNumber, productName, purchasePrice, salesPrice, rentPrice, countryOfOrigin, fabricant, description, carModel, modelYear, minStock, maxStock);

		this.tireType = tireType;
		this.tireSize = tireSize;
	}

	//Returns the tiretype
	public String getTireType() 
	{
		return tireType;
	}

	//Sets the tire type
	public void setTireType(String tireType) 
	{
		this.tireType = tireType;
	}

	//Returns the tire size
	public String getTireSize() 
	{
		return tireSize;
	}

	//Sets the tire size
	public void setTireSize(String tireSize) 
	{
		this.tireSize = tireSize;
	}
	
	//Returns the product type
	public String getProductType()
	{
		return "Tire";
	}
	
	
	
}